#[macro_use]
extern crate afl;
extern crate guess;

fn main() {
    // fuzz!(|data: &[u8]| {
    //     if let Ok(s) = std::str::from_utf8(data) {
    //         let _ = guess::guess_str(&s);
    //     }
    // });

    fuzz!(|data: &[u8]| {
        if data.len() != 6 {return}
        if data[0] != b'q' {return}
        if data[1] != b'w' {return}
        if data[2] != b'e' {return}
        if data[3] != b'r' {return}
        if data[4] != b't' {return}
        if data[5] != b'y' {return}
        panic!("BOOM")
    });
}
